﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OLTS.WEB.BaseClass;

namespace ONTS.WEB.Views
{
    public partial class AsSignProjectKeyIn : BaseWebpage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["LOGIN"] == null)
            {
                Response.Redirect("/AccessDeniedPage.aspx",false);
            }
            else
            {
                var model = BaseService.LOGIN;
                var role = model.ROLE.Split(':');
                if (!role.Contains("administrator"))
                {
                    Response.Redirect("/AccessDeniedPage.aspx",false);
                } 
            }
        }
    }
}